package com.xueyi.aixihu.reqeust;

import com.xueyi.aixihu.reqeust.base.PageLimitReq;
import lombok.Data;
import org.springframework.util.StringUtils;

import java.util.Date;

@Data
public class ComplaintReq extends PageLimitReq {

    private Integer id;

    /**
     * 游客名称
     */
    private String nikeName;

    /**
     * 手机号
     */
    private String userPhone;

    /**
     * 投诉的主题
     */
    private String complatinTitle;

    /**
     * 属于那一块地址
     */
    private Integer addressId;

    /**
     * 投诉的内容
     */
    private String remark;

    /**
     * 投诉的图片
     */
    private String remarkPhoto;

    /**
     * 回访内容
     */
    private String processRemark;

    public void format(){
        nikeName = StringUtils.hasLength(nikeName)? nikeName.trim():null;
        userPhone = StringUtils.hasLength(userPhone)? userPhone.trim():null;
        complatinTitle = StringUtils.hasLength(complatinTitle)? complatinTitle.trim():null;
        remark = StringUtils.hasLength(remark)? remark.trim():null;
        processRemark = StringUtils.hasLength(processRemark)? processRemark.trim():null;
        countStartIndex();
    }
}
